import { BeanType, ReflectUtil } from "../di"

export function Repository(id: string = null, args: any[] = null) {
  return function (target) {
    ReflectUtil.defineComponent(target, BeanType.Component, id, { args })
    return target
  }
}
